package com.wclass.controller.app;


import com.wclass.common.ReturnObject;
import com.wclass.entity.BaseContactUs;
import com.wclass.service.IBaseContactUsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 联系我们 前端控制器
 * </p>
 *
 * @author SEN
 * @since 2019-02-14
 */
@Api(description = "联系我们")
@RestController
@RequestMapping("/contactUs")
public class ContactUsController {
    @Autowired
    private IBaseContactUsService contactUsService;

    @ApiOperation("获取联系我们详情")
    @RequestMapping(value = "/getContactUsInfo", method = RequestMethod.POST)
    public ReturnObject<BaseContactUs> getContactUsInfo() {
        return new ReturnObject<>(0, "获取成功", contactUsService.selectById(1L));
    }

}

